package com.entity;

import java.io.Serializable;
import javax.persistence.*;
import java.math.BigDecimal;
import java.util.Date;
import java.util.List;


/**
 * The persistent class for the RIVALFIRMS database table.
 * 
 */
@Entity
@Table(name="RIVALFIRMS")
@NamedQuery(name="Rivalfirm.findAll", query="SELECT r FROM Rivalfirm r")
public class Rivalfirm implements Serializable {
	private static final long serialVersionUID = 1L;

	@Id
	@SequenceGenerator(name="RIVALFIRMS_RFID_GENERATOR", sequenceName="CHANCELOG_SEQ",initialValue=1,allocationSize=1)
	@GeneratedValue(strategy=GenerationType.SEQUENCE, generator="RIVALFIRMS_RFID_GENERATOR")
	private Long rfid;

	private String ability;

	private String advantage;

	@Temporal(TemporalType.DATE)
	private Date birth;

	@Column(name="\"CASE\"")
	private String case_;

	private String company;

	private BigDecimal logic;

	private BigDecimal price;

	private String remark;

	@Column(name="\"SHORT\"")
	private String short_;

	private String solutions;
	
	@Transient
	private List<String> query;
	
	@Transient
	private String range1;
	
	@Transient
	private String range2;
	
	@Transient
	private String range3;

	//bi-directional many-to-one association to Chanceinfo
	@ManyToOne
	@JoinColumn(name="CIID")
	private Chanceinfo chanceinfo;
	
	//bi-directional many-to-one association to Customer
	@ManyToOne
	@JoinColumn(name="CUSNO")
	private Customer customer;

	public Rivalfirm() {
	}

	public Long getRfid() {
		return this.rfid;
	}

	public void setRfid(Long rfid) {
		this.rfid = rfid;
	}

	public String getAbility() {
		return this.ability;
	}

	public void setAbility(String ability) {
		this.ability = ability;
	}

	public String getAdvantage() {
		return this.advantage;
	}

	public void setAdvantage(String advantage) {
		this.advantage = advantage;
	}

	public Date getBirth() {
		return this.birth;
	}

	public void setBirth(Date birth) {
		this.birth = birth;
	}

	public String getCase_() {
		return this.case_;
	}

	public void setCase_(String case_) {
		this.case_ = case_;
	}

	public String getCompany() {
		return this.company;
	}

	public void setCompany(String company) {
		this.company = company;
	}

	public BigDecimal getLogic() {
		return this.logic;
	}

	public void setLogic(BigDecimal logic) {
		this.logic = logic;
	}

	public BigDecimal getPrice() {
		return this.price;
	}

	public void setPrice(BigDecimal price) {
		this.price = price;
	}

	public String getRemark() {
		return this.remark;
	}

	public void setRemark(String remark) {
		this.remark = remark;
	}

	public String getShort_() {
		return this.short_;
	}

	public void setShort_(String short_) {
		this.short_ = short_;
	}

	public String getSolutions() {
		return this.solutions;
	}

	public void setSolutions(String solutions) {
		this.solutions = solutions;
	}

	public Chanceinfo getChanceinfo() {
		return this.chanceinfo;
	}

	public void setChanceinfo(Chanceinfo chanceinfo) {
		this.chanceinfo = chanceinfo;
	}

	public Customer getCustomer() {
		return customer;
	}

	public void setCustomer(Customer customer) {
		this.customer = customer;
	}

	public List<String> getQuery() {
		return query;
	}

	public void setQuery(List<String> query) {
		this.query = query;
	}

	public String getRange1() {
		return range1;
	}

	public void setRange1(String range1) {
		this.range1 = range1;
	}

	public String getRange2() {
		return range2;
	}

	public void setRange2(String range2) {
		this.range2 = range2;
	}

	public String getRange3() {
		return range3;
	}

	public void setRange3(String range3) {
		this.range3 = range3;
	}
	

}